<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>个人信息</title>
<link rel="stylesheet" type="text/css"
	href="/ExamOnline/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="/ExamOnline/easyui/themes/icon.css">
<script type="text/javascript" src="/ExamOnline/easyui/jquery.min.js"></script>
<script type="text/javascript"
	src="/ExamOnline/easyui/jquery.easyui.min.js"></script>
</head>
<body>
	<div class="easyui-panel" title="个人信息" style="width:400px">
		<div style="padding:10px 60px 20px 60px">
			<form id="ff" method="post">
				<input type="hidden" name="userid">
				<table cellpadding="5">
					<tr>
						<td>学员名称:</td>
						<td><input class="easyui-textbox" type="text" name="name" readonly="readonly"></input></td>
					</tr>
					<tr>
						<td>阶段:</td>
						<td><select name="stage" class="easyui-combobox"
							panelHeight="auto"  disabled="disabled">
								<option value="1">一阶段</option>
								<option value="2">二阶段</option>
								<option value="3">三阶段</option>
								<option value="4">四阶段</option>
						</select></td>
					</tr>
					<tr>
						<td>状态:</td>
						<td><select name="status" class="easyui-combobox"
							panelHeight="auto" disabled="disabled">
								<option value="1">正常</option>
								<option value="2">重修</option>
						</select></td>
					</tr>
					<tr>
						<td>入学时间:</td>
						<td><input id="dd" name="entrancetime" type="text" readonly="readonly"></td>
					</tr>
					<tr>
						<td>原密码：</td>
						<td><input class="easyui-textbox" name="oldpwd" type="password"></input>
						</td>
					</tr>
					<tr>
						<td>新密码：</td>
						<td><input class="easyui-textbox" name="newpwd" type="password"></input>
					</td>
					</tr>
					<tr>
						<td></td>
						<td><a href="javascript:void(0)" class="easyui-linkbutton" onclick="changePwd()">修改密码</a></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
	<script>
	$('#ff').form('load','/ExamOnline/user/curruser');
	$('#ff').form({
		onLoadSuccess:function(data){
			var time = new Date(data.entrancetime);
			var day = time.getDate();
			var month = time.getMonth() + 1;
			var year = time.getFullYear();
			$("#dd").val(year+"/"+month+"/"+day);
			
		}
	});
	function changePwd() {
		$.post("/ExamOnline/user/changepwd", $('#ff').serialize(), function(r) {
			$.messager.alert('提示消息', r);
		});
	}
	</script>
</body>
</html>
